package com.openvas.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 报告对象 table_report
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TableReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 报告所有者 */
    @Excel(name = "报告所有者")
    private String owner;

    /** 报告名称 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报告名称", width = 30, dateFormat = "yyyy-MM-dd")
    private Date name;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modificationTime;

    /** 任务id */
    @Excel(name = "任务id")
    private Long taskId;

    /** 任务名称 */
    @Excel(name = "任务名称")
    private String taskName;

    /** 报告格式id */
    @Excel(name = "报告格式id")
    private Long reportFormatId;

    /** 报告格式名称 */
    @Excel(name = "报告格式名称")
    private String reportFormatName;

    /** 扫描启动状态 */
    @Excel(name = "扫描启动状态")
    private String scanRunStatus;

    /** 结果总数 */
    @Excel(name = "结果总数")
    private Long resultCount;

    /** 主机总数 */
    @Excel(name = "主机总数")
    private Integer hostCount;

    /** 关闭CVE总数 */
    @Excel(name = "关闭CVE总数")
    private Integer closedCvesCount;

    /** 漏洞总数 */
    @Excel(name = "漏洞总数")
    private Integer vulnsCount;

    /** 应用CPE总数 */
    @Excel(name = "应用CPE总数")
    private Integer appsCount;

    /** TLS证书总数 */
    @Excel(name = "TLS证书总数")
    private Integer sslCertsCount;

    /** 端口总数 */
    @Excel(name = "端口总数")
    private Integer portCount;

    /** 端口名称 */
    @Excel(name = "端口名称")
    private String portName;

    /** 主机名称 */
    @Excel(name = "主机名称")
    private String postHost;

    /** 严重程度 */
    @Excel(name = "严重程度")
    private Long postSeverity;

    /** 威胁（高 中 低 日志 误报） */
    @Excel(name = "威胁", readConverterExp = "高=,中=,低=,日=志,误=报")
    private String postThreat;

    /** 高威胁总数 */
    @Excel(name = "高威胁总数")
    private Integer highCount;

    /** 中威胁总数 */
    @Excel(name = "中威胁总数")
    private Integer mediumCount;

    /** 低威胁总数 */
    @Excel(name = "低威胁总数")
    private Integer lowCount;

    /** 日志总数 */
    @Excel(name = "日志总数")
    private Integer logCount;

    /** 误报总数 */
    @Excel(name = "误报总数")
    private Integer falsePositiveCount;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }
    public void setName(Date name) 
    {
        this.name = name;
    }

    public Date getName() 
    {
        return name;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }
    public void setModificationTime(Date modificationTime) 
    {
        this.modificationTime = modificationTime;
    }

    public Date getModificationTime() 
    {
        return modificationTime;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }
    public void setReportFormatId(Long reportFormatId) 
    {
        this.reportFormatId = reportFormatId;
    }

    public Long getReportFormatId() 
    {
        return reportFormatId;
    }
    public void setReportFormatName(String reportFormatName) 
    {
        this.reportFormatName = reportFormatName;
    }

    public String getReportFormatName() 
    {
        return reportFormatName;
    }
    public void setScanRunStatus(String scanRunStatus) 
    {
        this.scanRunStatus = scanRunStatus;
    }

    public String getScanRunStatus() 
    {
        return scanRunStatus;
    }
    public void setResultCount(Long resultCount) 
    {
        this.resultCount = resultCount;
    }

    public Long getResultCount() 
    {
        return resultCount;
    }
    public void setHostCount(Integer hostCount) 
    {
        this.hostCount = hostCount;
    }

    public Integer getHostCount() 
    {
        return hostCount;
    }
    public void setClosedCvesCount(Integer closedCvesCount) 
    {
        this.closedCvesCount = closedCvesCount;
    }

    public Integer getClosedCvesCount() 
    {
        return closedCvesCount;
    }
    public void setVulnsCount(Integer vulnsCount) 
    {
        this.vulnsCount = vulnsCount;
    }

    public Integer getVulnsCount() 
    {
        return vulnsCount;
    }
    public void setAppsCount(Integer appsCount) 
    {
        this.appsCount = appsCount;
    }

    public Integer getAppsCount() 
    {
        return appsCount;
    }
    public void setSslCertsCount(Integer sslCertsCount) 
    {
        this.sslCertsCount = sslCertsCount;
    }

    public Integer getSslCertsCount() 
    {
        return sslCertsCount;
    }
    public void setPortCount(Integer portCount) 
    {
        this.portCount = portCount;
    }

    public Integer getPortCount() 
    {
        return portCount;
    }
    public void setPortName(String portName) 
    {
        this.portName = portName;
    }

    public String getPortName() 
    {
        return portName;
    }
    public void setPostHost(String postHost) 
    {
        this.postHost = postHost;
    }

    public String getPostHost() 
    {
        return postHost;
    }
    public void setPostSeverity(Long postSeverity) 
    {
        this.postSeverity = postSeverity;
    }

    public Long getPostSeverity() 
    {
        return postSeverity;
    }
    public void setPostThreat(String postThreat) 
    {
        this.postThreat = postThreat;
    }

    public String getPostThreat() 
    {
        return postThreat;
    }
    public void setHighCount(Integer highCount) 
    {
        this.highCount = highCount;
    }

    public Integer getHighCount() 
    {
        return highCount;
    }
    public void setMediumCount(Integer mediumCount) 
    {
        this.mediumCount = mediumCount;
    }

    public Integer getMediumCount() 
    {
        return mediumCount;
    }
    public void setLowCount(Integer lowCount) 
    {
        this.lowCount = lowCount;
    }

    public Integer getLowCount() 
    {
        return lowCount;
    }
    public void setLogCount(Integer logCount) 
    {
        this.logCount = logCount;
    }

    public Integer getLogCount() 
    {
        return logCount;
    }
    public void setFalsePositiveCount(Integer falsePositiveCount) 
    {
        this.falsePositiveCount = falsePositiveCount;
    }

    public Integer getFalsePositiveCount() 
    {
        return falsePositiveCount;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("owner", getOwner())
            .append("name", getName())
            .append("comment", getComment())
            .append("creationTime", getCreationTime())
            .append("modificationTime", getModificationTime())
            .append("taskId", getTaskId())
            .append("taskName", getTaskName())
            .append("reportFormatId", getReportFormatId())
            .append("reportFormatName", getReportFormatName())
            .append("scanRunStatus", getScanRunStatus())
            .append("resultCount", getResultCount())
            .append("hostCount", getHostCount())
            .append("closedCvesCount", getClosedCvesCount())
            .append("vulnsCount", getVulnsCount())
            .append("appsCount", getAppsCount())
            .append("sslCertsCount", getSslCertsCount())
            .append("portCount", getPortCount())
            .append("portName", getPortName())
            .append("postHost", getPostHost())
            .append("postSeverity", getPostSeverity())
            .append("postThreat", getPostThreat())
            .append("highCount", getHighCount())
            .append("mediumCount", getMediumCount())
            .append("lowCount", getLowCount())
            .append("logCount", getLogCount())
            .append("falsePositiveCount", getFalsePositiveCount())
            .append("userName", getUserName())
            .toString();
    }
}
